<div class="container">
	<div class="tabbable tabs-left" id="admin_bar">
		<%= render 'shared/admin_bar'%>
		<div class="tab-content">
			<div class="row-fluid">
				<h1 class="span6"> <%= t('nguoi_dung')%> </h1>
				<div class="span6">
					<ul class="nav nav-pills pull-right">
						<li class="<%= !params[:loc].present? ? "active" : ""%>">
							<a href="<%= url_for :action=>"index" %>"><%= t 'tat_ca_nguoi_dung'%></a>
						</li>
						<li class="<%= params[:loc].present? && params[:loc] == 'nhan_vien' ? "active" : ""%>">
							<a href="<%= url_for :loc => 'nhan_vien'%>"><%= t 'nhan_vien'%></a>
						</li>
						<li class="<%= params[:loc].present? && params[:loc] == 'khach_hang'  ? "active" : ""%>">
							<a href="<%= url_for :loc => 'khach_hang' %>"><%= t 'khach_hang'%></a>
						</li>
					</ul>
				</div>
			</div>
			<div>
				<a href="<%= url_for :action=> "tao_moi" %>" class="btn btn-primary">Thêm nhân viên</a>
			</div>
			<%= form_tag url_for :action => "index", :id => 'dang_nhap' do %>
			<table class="table table-stripped">
				<thead>
					<tr>
						<th> # </th>
						<th> <%= t 'ten_hien_thi'%> </th>
						<th> <%= t 'email' %> </th>
						<!-- <th> <%= t 'la_nhan_vien'%> </th>
						<th> <%= t 'quan_ly_bai_viet'%> </th> -->
						<th> <%= t 'xoa_nguoi_dung'%> <i class="icon-trash"></i></th>
					</tr>
				</thead>
				<tbody>
					<% i = @index_dau_tien + 1%>
					<% for nguoi_dung in @nguoi_dungs%>
					<tr>
						<th> <%= i %>
						<% i = i + 1 %>
						<input type="hidden" name="nguoi_dung[<%= nguoi_dung.id %>][hidden]" value="1">
						</th>
						<td> <%= nguoi_dung.ten_hien_thi %> </td>
						<td> <%= nguoi_dung.email %> </td>
						<!-- <td> <%= check_box_tag '', '1', nguoi_dung.is_nhan_vien, :name => "nguoi_dung[#{nguoi_dung.id}][is_nhan_vien]" %> </td>
						<td> <%= check_box_tag '', '1', nguoi_dung.is_xu_ly_don_hang, :name => "nguoi_dung[#{nguoi_dung.id}][is_xu_ly_don_hang]" %> </td> -->
						<td><a href="<%= url_for :action => 'xoa', :uid => nguoi_dung.id %>" onclick="return confirm('<%= t 'ban_co_chac_chan_muon_xoa'%>')"> <%= t 'xoa_nguoi_dung'%> </a></td>
					</tr>
					<% end %>
				</tbody>
			</table>
			<div>
				<div class="span4 pull-right">
					<div class="pager">
						<% if @co_trang_truoc %>
						<li class="previous">
							<a href="<%= url_for :loc => params[:loc], :page => @trang - 1%>">&larr; <%= t 'trang_truoc'%></a>
						</li>
						<%end %>
						<% if @co_trang_sau %>
						<li class="next">
							<a href="<%= url_for :loc => params[:loc], :page => @trang + 1%>"><%= t 'trang_sau'%> &rarr;</a>
						</li>
						<%end %>
					</div>
				</div>
				<div class="pull-left">
					<!-- <input type="submit" class="btn btn-primary" name="cap_nhat" value="<%= t 'cap_nhat'%>" /> -->
				</div>
				<div class="clearfix"></div>
			</div>
			<% end %>
		</div>
	</div>
</div>
